//
//  SearchRecordBar.swift
//  Motion
//
//  Created by 悦月越悦 on 2021/3/8.
//

import SwiftUI

struct SearchRecordBar: View {
    @State var searchModel: SearchCourseModel
    
    var body: some View {
        HStack{
            HStack{
                Text("搜索记录")
                    .customFont(18, true)
                    .foregroundColor(Color("topicPurple"))
                Spacer()
                HStack{
                    Image(systemName: "trash")
                    Text("清除记录")
                }
                .customFont(16, true)
                .foregroundColor(Color("sDeepGray"))
                .onTapGesture(perform: {
                    searchModel.clearSearchCText()
                })
            }
        }
    }
}
